Tests\Module\Checkout\CartServiceTest S

Total Complexity 33
Dependencies 13
Dependents 0
Total lines 611
Lines of code 518
Logical lines of code 204
Comment lines 3
Methods 27
Properties 6

Methods 27

Method Rating Maintainability Complexity Lines of code
cartContainsProductOversizedForCarrier()
A
35 1 135
testGetTaxClassWithMaxRateWithMultipleTaxClasses()
S
43 5 57
testGetDisallowedShippingRateIdsCombined()
S
51 3 28
testGetBiggestProductSizeBySum()
S
48 1 38
testCartContainsProductOversizedForCarrier()
S
51 1 27
testGetTotalCartProductValue()
S
53 1 25
testGetTaxClassWithMaxRateWithSingleTaxableProduct()
S
58 1 16
testGetTaxClassWithMaxRateWithNoTaxableProduct()
S
59 1 15
testGetTaxClassWithMaxRateWithInvalidProduct()
S
60 1 15
createCartServiceMock()
S
61 1 14
testIsAgeVerificationRequiredWithVerification()
S
59 1 14
testIsAgeVerificationRequiredWithoutVerification()
S
59 1 14
testGetDisallowedShippingRateIdsWithNonPhysicalProduct()
S
60 1 13
testIsAgeVerificationRequiredWithNonPhysicalProduct()
S
60 1 13
testGetDisallowedShippingRateIdsWithPhysicalProduct()
S
60 1 13
testIsShippingRateRestrictedByProductsCategoryWithProductWithoutId()
S
75 1 4
testIsShippingRateRestrictedByProductsCategoryWithProductInRestrictedCategories()
S
62 1 10
testIsShippingRateRestrictedByProductsCategoryWithProductNotInCategories()
S
62 1 10
testIsShippingRateRestrictedByProductsCategoryWithNoProductCategories()
S
72 1 5
testGetCartWeightKgWithExceptionOnGetWeight()
S
67 1 8
testIsShippingRateRestrictedByProductsCategoryWithInvalidProduct()
S
70 1 6
testGetCartContentsTotalIncludingTaxWithNoTaxes()
S
70 1 6
testGetCartWeightKgWithEmptyCart()
S
67 1 8
testGetCartWeightKgWithProductsInCart()
S
66 1 8
testIsAgeVerificationRequiredWithoutWpLoaded()
S
73 1 5
testGetCartWeightKgWithoutWpLoaded()
S
73 1 5
testGetCartContentsTotalIncludingTaxWithTaxes()
S
70 1 6